import request from '../utils/request'

export default{
  //获取课程评论集合
  getList(id,current,size){
    return request({
      url:`/comment/getListByCourseId/${id}/${current}/${size}`,
      method:'get'
    })
  },
  //添加课程评论
  saveComment(comment){
    return request({
      url:`/comment/saveComment`,
      method:'post',
      data:comment
    })
  }

}
